home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / Palettes.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  1.8 KB  |  69 lines  |  [TEXT/MPS ]

  1. ;    File:        Palettes.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGPALETTES__') = 'UNDEFINED' THEN
  12. __INCLUDINGPALETTES__    SET    1
  13.  
  14. ; Palette Manager equates
  15.  
  16. ; Usage constants
  17. pmCourteous       EQU         $0000
  18. pmDithered        EQU         $0001
  19. pmTolerant        EQU         $0002
  20. pmAnimated        EQU         $0004
  21. pmExplicit        EQU         $0008
  22.  
  23. pmWhite            EQU            $0010
  24. pmBlack            EQU            $0020
  25.  
  26. pmInhibitG2       EQU         $0100
  27. pmInhibitC2       EQU         $0200
  28. pmInhibitG4       EQU         $0400
  29. pmInhibitC4       EQU         $0800
  30. pmInhibitG8       EQU         $1000
  31. pmInhibitC8       EQU         $2000
  32.  
  33. ; bit numbers for above
  34.  
  35. inhibitG2Bit    EQU        8
  36. inhibitC2Bit    EQU        9
  37. inhibitG4Bit    EQU        10
  38. inhibitC4Bit    EQU        11
  39. inhibitG8Bit    EQU        12
  40. inhibitC8Bit    EQU        13
  41.  
  42. ; palette update types
  43.  
  44. noPaletteUpdates        EQU        0
  45. allBackPaletteUpdates    EQU        1
  46. allForePaletteUpdates    EQU        2
  47. allPaletteUpdates        EQU        3
  48.  
  49. ; ColorInfo structure            ; Always access these fields through Palette manager calls!
  50.  
  51. ciRGB        EQU        $0000        ; RGBColor            [short] * 3
  52. ciUsage        EQU        $0006        ; usage                [short]
  53. ciTolerance    EQU        $0008        ; tolerance value   [short]
  54. ciDataFields EQU    $000A        ; three words of private data
  55. ciSize        EQU        $0010        ; size of the ColorInfo data structure
  56.  
  57. ; Palette structure                ; Always access these fields through Palette manager calls!
  58.  
  59. pmEntries    EQU        $0000        ; entries in pmInfo        [short]
  60. pmDataFields EQU    $0002        ; seven words of private data
  61. pmInfo        EQU        $0010        ; ColorInfo's            [ciSize] * pmEntries
  62. pmHdrSize    EQU        $0010        ; size of Palette header
  63.  
  64. ; Palette resource structure
  65.  
  66. plttEntries    EQU        $0000        ; entries in palette resource    [short]
  67. plltUpdates EQU        $0002        ; value passed to SetPalette    [short]
  68.  
  69.     ENDIF    ; ...already included